package cn.edu.gcu.lost.controller;

import cn.edu.gcu.lost.service.PhoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @author polo
 */
@RequestMapping("")
@Controller
public class ForwardController {

    @RequestMapping("/index")
    public String message() {
        return "index";
    }

    @RequestMapping("/person")
    public String person() {
        return "person";
    }

    @RequestMapping("/add")
    public String add() {
        return "add";
    }

    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    @RequestMapping("/rootIndex")
    public String rootIndex() {
        return "root_index";
    }

    @RequestMapping("/welcome")
    public String welcome() {
        return "welcome";
    }

    @RequestMapping("/rootList")
    public String rootList() {
        return "root-list";
    }

    @RequestMapping("/rootAdd")
    public String rootAdd() {
        return "root-add";
    }

    @RequestMapping("/rootEdit")
    public String rootEdit() {
        return "root-edit";
    }

    @RequestMapping("/adminRole")
    public String adminRole() {
        return "admin-role";
    }

    @RequestMapping("/adminAdd")
    public String adminAdd() {
        return "admin-add";
    }

    @RequestMapping("/adminEdit")
    public String adminEdit() {
        return "admin-edit";
    }

    @RequestMapping("/adminRule")
    public String adminRule() {
        return "admin-rule";
    }

    @RequestMapping("/ruleAdd")
    public String ruleAdd() {
        return "rule-add";
    }

    @RequestMapping("/ruleEdit")
    public String ruleEdit() {
        return "rule-edit";
    }

    @RequestMapping("/error")
    public String error() {
        return "error";
    }

    @RequestMapping("/self")
    public String self() {
        return "self";
    }

    @RequestMapping("/mesList")
    public String mesList() {
        return "message-list";
    }

    @RequestMapping("/unauthorized")
    public String unauthorized() {
        return "unauthorized";
    }

    @RequestMapping("/selfPwd")
    public String selfPwd() {
        return "selfPwd";
    }

    @RequestMapping("/msgDetail")
    public String msgDetail() {
        return "msg-detail";
    }
}
